
class Lei {
  name:string
  age?:number
  readonly sex:string = "男"
  constructor(can:string){
    this.name = can
    this.age = 18
  }
}
let LeiFn = new Lei("1")

class Son extends Lei {
  constructor(params:string) {
    super(params)
  }
  work(){
    console.log(this.name);
    
  }
}
new Son("11")